﻿/*
	Copyright © Bogdan Kobets 2011
	http://ElasticLogic.com
*/

using System;
using ElasticLogic.TagsMarker.Concepts;

namespace ElasticLogic.TagsMarker.Filter
{

	public sealed class NOOP : FilterRule
	{
		public Label Label { get; private set; }

		public override string Expression
		{
			get { return "'" + Label.Caption + "'"; }
		}

		public NOOP(Label label)
			: base(FilterMode.NOOP)
		{
			this.Label = label;
		}

		internal override void ResetSatisfy()
		{
			base.Satisfy = null;
		}

		public override FilterRule CloneRule()
		{
			return new NOOP(this.Label);
		}

	}

}
